package com.turtle.dto;

import com.turtle.valid.group.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author lijiayu
 * @date 2020/7/20
 * @description
 */
@Data
public class BlogParam {
    @NotNull(groups = {Update.class})
    private Long id;

    private Long blogSortId;
    @NotNull
    private Integer type;
    @NotBlank
    private String title;
    @NotBlank
    private String content;

    private List<Long> tagList;
    @NotNull
    private Integer status;
}
